/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sv.gob.mh.dgii.model.pojos.ruc;

import java.io.Serializable;
import javax.validation.Valid;
import sv.gob.mh.dgii.common.Utils;

/**
 *
 * @author hgonzalez
 */
public class D implements Serializable {

	private static final long serialVersionUID = 1L;
        
        @Valid
        private Domicilio domicilio = new Domicilio("02");
        
        private String reset;
                
        public D(){
            this.domicilio = new Domicilio();
        }
        
        public D(F210 f210){
            if(Utils.isNullOrEmpty(f210.getCasaMatrizEnEdicion())){
                this.domicilio = new Domicilio();
            }else{
                this.domicilio = f210.getCasaMatrizEnEdicion();
            }
        }

    /**
     * @return the domicilio
     */
    public Domicilio getDomicilio() {
        return domicilio;
    }

    /**
     * @param domicilio the domicilio to set
     */
    public void setDomicilio(Domicilio domicilio) {
        this.domicilio = domicilio;
    }

    /**
     * @return the reset
     */
    public String getReset() {
        return reset;
    }

    /**
     * @param reset the reset to set
     */
    public void setReset(String reset) {
        this.reset = reset;
    }
        
        
    
}
